package com.lbn.jfqsc.net;

import com.lbn.baseframe.net.IRetrofit2Host;
import com.lbn.baseframe.net.Retrofit2Factory;

/**
 * Created by 李炳南
 * 2017/3/4.
 */

public class Host implements IRetrofit2Host {

    private static Host host;

//    @Override
//    public String getHost() {
//        return "http://192.168.1.105:8080/";
//    }
    @Override
    public String getHost() {
        return "http://114.215.110.26:8089/Shawshank/";
    }


    public static ApiService getApi() {

        if (host == null) {
            host = new Host();
        }
        return Retrofit2Factory.apiService(host, ApiService.class);
    }


}
